Where is Default.png set?

Is there a way to set the Default.png file that is produced for an HTML widget? currently, I'm opening the widget package and copying in my own Default.png, overwriting the one iAd Producer creates.

Posted on Feb 28, 2014 9:26 AM

Reply
11 replies

Feb 28, 2014 12:42 PM in response to 4thSpace

I've created two images to get around the above error:


image.png (512x384)

image@2x.png (1024x768)


Resolution for each image is in paranetheses. Now when I import, it throws this warning:


,,"image.png",WARN,"The standard- and high-resolution versions of “image.png” have incompatible dimensions. The high-resolution version should be exactly twice as large as the standard-resolution one.","Invalid File"


Since the message is invalid, do you have any idea what is wrong?

Feb 28, 2014 1:27 PM in response to 4thSpace

Documentation about multiple asset versions or renditions:

https://help.apple.com/iadproducer/mac/4.1/help/#iade7b50add


It may be that the project is getting confused about the image renditions because you added them separately. I'd remove the image assets from the Assets sidebar, save the project, add the two images in a single import, then drag the image from the Assets sidebar to the Project Inspector.

Feb 28, 2014 1:59 PM in response to patixa

I tried that but get the same error. I then deleted the one file, which is all that shows, restarted iAd Producer and imported both files at the same time. Same error.


In the Assets panel, it only shows the low resolution file. But the 1x and 2x file sizes are for the high resolution file. This is some type of bug in iAd Producer.


When I export the widget, I can see both versions of the Default.png are created. When I drag this widget into iBooks Author, the image is also there. Except for the warning, it seems to work.

Feb 28, 2014 8:56 PM in response to patixa

image.png 28k

image@2x.png 27k


I can see that's why iAd Producer was complaining. I created the 1/2 size image by resizing in Preview. I'm not sure what Preview does in that case. It resized the dimensions but not the bytes on disk size.


I created the 1/2 size through Illustrator and the file size is now smaller and iAd Producer no longer complains.

Mar 3, 2014 9:32 AM in response to 4thSpace

Yes, sorry about the cofusion, I meant the amount of space on the disk that the file occupies, and not the dimension of the image.


iAd Producer has this import logic where it will use the smaller (in file size) of the two for the low resolution. So in your original case, the high resolution was the smaller fo the two, so it used it for your low resolution which failed the validation because the dimension are exactly the same (instead 1/2 dimension of high version). This is part of optimizing process for your iAd project.


Hopefully that helps.



-Takayasu

Apr 15, 2014 8:09 AM in response to 4thSpace

I ran in to this yesterday. I still do not know what caused it, but I thought I would share my journey to resolution.


Both my standard-sized and 2x-sized files were created in Photoshop from the same .psd file at the 2x dimension size, which I ensured had even-numbered dimensions in both height and width. The 2x file is created by saving the .psd as a .jpg and setting the jpg compression so that the resulting file size will be less than 250KB. The standard file is created by applying a 50% image size reduction and saving it as a jpg file with compression such that the resulting file size will be less than 250KB.


In my iAD Producer project file, on the Assets pane I had right-clicked to Import... and selected the standard sized file and the @2x sized file ("Splash background.jpg" and "Splash background@2x.jpg").


Then I worked for many hours, many other asset imports, adding pages, actions, testing, etc. Eventually I noticed when viewing the overview that my project had some warnings in the Properties pane of the Inspector. The only one I could not resolve was the "Splash Background" had incompatible dimensions -- which made no sense. I right clicked on it in the list of assets and chose "Reveal original in Finder" which preselected the two files and I showed the Get Info for both: As expected, the dimensions were both even and the @2x file had dimensions exactly 2x the standard file size.


Nothing I tried within my iAd Producer file would allow me to update the two files to clear the warning.


Eventually I started a new iAd Producer project and imported these two same files. I applied them to the Shared Layers, Background, and there were no warnings.


Feeling vindicated but still stumped I switched focus back to my (still open) original iAd Producer project file and noticed right away that to the right of the asset listing for my "Splash Background" asset was the reload circular arrow! I right-clicked, chose Update (which had never been available before) and the warning message went away.


The only original visual indication I had that something in iAd Producer was amiss was at the top of the Assets pane, where information about the selected asset is shown. On my "Splash Background" both the 1x and 2x files were listed with a file size of 185KB, which, if correct, would be a curious fluke of compression settings. In fact, using Finder's Get Info I could see that the file sizes were 203KB and 236KB respectively. After iAd Producer allowed me to Update the asset, the information about the selected asset showed correct file sizes for the two files.


So I can't really understand why importing the files in question into a new project caused the original project to notice it's understanding of the files didn't match what the files really look like, but maybe this little bit of voodoo will help someone else clear the warning they, too, are battling.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Where is Default.png set?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.